home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource5
/
310_01
/
check.st
< prev
next >
Wrap
Text File
|
1990-04-20
|
178b
|
16 lines
Class CheckBook
| balance |
[
new
balance <- 0
|
+ amount
balance <- balance + amount.
^ balance
|
- amount
balance <- balance - amount.
^ balance
]